import moment from 'moment';

// 以日志为示例的中间件
export const logger = (store) => (next) => (action) => {

	if (__DEV__) {
		let state = store.getState();
		console.log(`(${moment().format('HH:mm:ss')}) next state: `, state);
	};

	return next(action);
};